package vip.xiaonuo.facedoor.modular.reactor.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import reactor.core.Environment;
import reactor.core.Reactor;
import reactor.core.spec.Reactors;

@Configuration
 public class Configure {
 	@Bean
 	Environment env() {
 		return new Environment();
 	}
 
 	@Bean
    Reactor createReactor(Environment env) {
         return Reactors.reactor()
                 .env(env)
                 .dispatcher(Environment.THREAD_POOL)
                 .get();
     }
 }